import request from '@/utils/request/request';

export function findAll(data) {
  return request({
    url: 'http://localhost:9999/jeccgserviceItems/item/findAll',
    method: 'post',
    params: data,
  });
}
export function findAllType() {
  return request({
    url: 'http://localhost:9999/jeccgserviceItems/item/findAllType',
    method: 'get',
  });
}
export function qi(id) {
  return request({
    url: 'http://localhost:9999/jeccgserviceItems/item/qi',
    method: 'post',
    params: {
      id: id,
    },
  });
}
export function jin(id) {
  return request({
    url: 'http://localhost:9999/jeccgserviceItems/item/jin',
    method: 'post',
    params: {
      id: id,
    },
  });
}
export function deleteItem(id) {
  return request({
    url: 'http://localhost:9999/jeccgserviceItems/item/deleteItem',
    method: 'post',
    params: {
      id: id,
    },
  });
}
